package com.hellogood.work.evaluate.shared.services;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.work.evaluate.shared.po.Task;

@RemoteServiceRelativePath("TaskService")
public interface TaskService extends RemoteService {
	public static class Util {
		private static TaskServiceAsync instance;

		public static TaskServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(TaskService.class);
			}
			return instance;
		}
	}
	
	public List<Task> getTaskList(String username, int start, int end, String field, String direct);
	
	public int getTotalTaskNumber(String username);
}
